import request from '@/utils/request'
const path = '/platform/wechat/index/'

// 获取创建表单
export function getWechatCreateForm() {
  return request({
    url: path + 'create',
    method: 'GET'
  })
}

// 获取编辑表单
export function getWechatEditForm(id) {
  return request({
    url: path + id + '/edit',
    method: 'GET'
  })
}

// 获取公众号通信

export function getWechatMessage(plaid) {
  return request({
    url: path + 'getWechatMessage',
    data: { plaid },
    method: 'POST'
  })
}

export function editWechatMessage(plaid, formData) {
  return request({
    url: path + 'editWechatMessage',
    data: { plaid, formData },
    method: 'POST'
  })
}
